import React from 'react'
import { IP } from '../../../utils/request'
import moment from 'moment'

class Index extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        const { data } = this.props
        return (
            <div>
                <div>告警图片:
                <img src={IP + data.warningPhoto} style={{ width: '200px', height: "200px" }} />
                </div>
                <div>告警时间:{moment(data.warningTime).format("YYYY-MM-DD HH:mm:ss")}</div>
                <div>告警地点:{data.warningAddress}</div>
                <div>告警类型:{data.warningType}</div>
                <div>人工甄别:{(data.isManpower === true) ? ('是') : ('否')}</div>
                <div>派警:{(data.isDistribut === 1) ? ('是') : ('否')}</div>
                <div>反馈人:{data.userName}</div>
                <div>反馈时间:{moment(data.feedbackTime).format("YYYY-MM-DD HH:mm:ss")}</div>
                <div>反馈状态:{data.status}</div>
                <div>反馈内容:{data.feedbackContent}</div>
            </div>
        )
    }
}
export default Index